package com.bcbim.model_server.floor.mapper;

import com.bcbim.model_server_interface.component.vo.MaterialIndexVO;
import com.bcbim.model_server_interface.floor.dao.FloorDAO;
import com.bcbim.model_server_interface.floor.vo.FloorVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * @Description: 楼层mapper
 * @Author: ye
 * @Date: 2022/4/15
 * @Version: V1.0
 **/
@Mapper
public interface FloorMapper {
    /**
     * @Description: 添加楼层信息
     * @Param: Collection<FloorDAO>
     * @Return: int
     * @Author: ye
     * @Date: 2022/4/15
     */
    int insert(@Param("list") Collection<FloorDAO> arrFloor);

    /**
     * @Description: 查询楼层
     * @Param: fileId
     * @Return: List<FloorVO>
     * @Author: ye
     * @Date: 2022/4/15
     */
    List<FloorVO> listFloor(String fileId);

    /**
     * @Description: 查询楼层的相关模型
     * @Param: floorId
     * @Return: List<MaterialIndexVO>
     * @Author: ye
     * @Date: 2022/4/18
     */
    List<MaterialIndexVO> getFloorModel(String floorId);

    /**
     * @Description: 查询楼层的文件id
     * @Param: floorId
     * @Return: String
     * @Author: ye
     * @Date: 2022/4/18
     */
    String getFileId(String floorId);
}
